<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
	<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />

	<style>

		.add_div {
			width: 400px;
			height: 500px;
			border: solid #ccc 1px;
			margin-top: 40px;
			margin-left: 170px;
			padding-left: 20px;
		}

		.file-list {
			height: 125px;
			display: none;
			list-style-type: none;
		}

		.file-list img {
			max-width: 70px;
			vertical-align: middle;
		}

		.file-list .file-item {
			margin-bottom: 10px;
			float: left;
			margin-left: 20px;
		}


		.file-list .file-item .file-del {
			display: block;
			margin-left: 20px;
			margin-top: 5px;
			cursor: pointer;
		}
	</style>
    <script src="../../common/js/jquery.min.js"></script>
    <script src="../../common/js/AjaxJson.js"></script>
    <script src="../../common/js/purchase_edit.js"></script>
</head>

<body class="pos-r">
<div>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 订单管理 <span class="c-gray en">&gt;</span> 订单编辑
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<!--<form action="" method="post" class="form form-horizontal" id="form-article-add">-->
			<div class="row cl" style="margin-bottom:15px;">
				<label class="form-label col-xs-4 col-sm-1">订单号：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text"  id="orderId" readonly="true">
				</div>
			</div>
			<div class="row cl" style="margin-bottom:15px;">
				<label class="form-label col-xs-4 col-sm-1">客户手机号：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" value=""  id="custPhone" onblur="isError()">
				</div>
			</div>
			<div class="row cl" style="margin-bottom:15px;">
				<label class="form-label col-xs-4 col-sm-1">客户账号：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" value="" placeholder="" id="accountNo" readonly="true">
				</div>
			</div>
		<div class="row cl" style="margin-bottom:15px;">
			<label class="form-label col-xs-4 col-sm-1">商品二维码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="" id="productQR" readonly="true">
			</div>
		</div>
			<div class="row cl" style="margin-bottom:15px;">
				<label class="form-label col-xs-4 col-sm-1">商品名称：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" value="" placeholder="" id="productName" readonly="true">
				</div>
			</div>
		<div class="row cl" style="margin-bottom:15px;">
			<label class="form-label col-xs-4 col-sm-1">商品图片：  </label>
			&nbsp;&nbsp;<span id="productPhoto"></span>
		</div>
		<div class="row cl" style="margin-bottom:15px;">
			<label class="form-label col-xs-4 col-sm-1">商品数量：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="" id="buyNumber" readonly="true">
			</div>
		</div>
		<div class="row cl" style="margin-bottom:15px;">
			<label class="form-label col-xs-4 col-sm-1">下单时间：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="date" class="input-text" value=""  id="orderTime" readonly="true">
			</div>
		</div>
		<div class="row cl" style="margin-bottom: 15px;">
			<label class="form-label col-xs-4 col-sm-1">购买金额：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="tel" id="price" class="input-text" style="width:90%" readonly="true"> 元
			</div>
		</div>
		<div class="row cl" style=" margin-bottom: 15px;">
			<label class="form-label col-xs-4 col-sm-1">实际支付金额：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" id="realPayPrice"  placeholder=""  class="input-text" style="width:90%" readonly="true"> 元
			</div>
		</div>
		<div class="row cl" style="margin-bottom:15px;">
			<label class="form-label col-xs-4 col-sm-1">送货/取货：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
					<select id="getOrConsigee" class="select" onchange="dis(this)">
						<option value="送货">送货</option>
						<option value="取货">取货</option>
					</select>
					</span> </div>
		</div>
		<div class="row cl" style="display: block; margin-bottom: 15px;" id="sh_Addr">
			<label class="form-label col-xs-4 col-sm-1">送货地址：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value=""  id="consigeeAddr" style="width:100%">
			</div>
		</div>

		<div class="row cl" style="display: block;margin-bottom: 15px;" id="sh_state">
			<label class="form-label col-xs-4 col-sm-1">订单状态：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
					<select id="shproductState" class="select" >
						<option value="1" >未发货</option>
						<option value="2" >已发货</option>
						<option value="3" >已收货</option>
						<option value="0" >未付款</option>
					</select>
					</span> </div>
		</div>
		<div class="row cl" style="display: none;margin-bottom: 15px;" id="qh_state">
			<label class="form-label col-xs-4 col-sm-1">订单状态：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
					<select id="qhproductState" class="select" >
						<option value="1" >未取货</option>
						<option value="2">已取货</option>
						<option value="0" >未付款</option>
					</select>
					</span> </div>
		    </div>
	    </div>
			<div class="row cl" align="center">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
					<button onclick="submit()" class="btn btn-primary radius">确认修改</button>
					<button onClick="layer_close();" class="btn btn-default radius" type="button">
						&nbsp;&nbsp;取消&nbsp;&nbsp;
					</button>
				</div>
			</div>
</div>
	<script>
        // function myfocus(txt) {
        //     txt.value = "";
        // }
        function dis(getOrConsigee) {
            //0表示送货、1表示取货
            var sh_Addr = document.getElementById("sh_Addr"); //送货地址
			 var qh_state=document.getElementById("qh_state");//取货
            var sh_state=document.getElementById("sh_state");//送货
			console.log(getOrConsigee.value);
            sh_Addr.style.display = (getOrConsigee.value == "送货" ) ? "block" :
                "none";
            sh_state.style.display= (getOrConsigee.value == "送货" ) ? "block" : "none";
            qh_state.style.display= (getOrConsigee.value == "送货" ) ? "none" : "block";
        }

	</script>
</div>
</body>
</html>